﻿#include "FlowCellParam.h"

namespace CVV
{

namespace Interface
{

FlowCellParam::FlowCellParam(QObject *parent)
    : QObject(parent)
{

}

FlowCellParam::~FlowCellParam()
{

}

FlowCellParam::FlowCellParam(const FlowCellParam &flowCellPlugin)
{
    if (this == &flowCellPlugin)
    {
        return;
    }

    this->m_code = flowCellPlugin.code();
    this->m_defaultValue = flowCellPlugin.defaultValue();
    this->m_description = flowCellPlugin.description();
    this->m_name = flowCellPlugin.name();
    this->m_paramType = flowCellPlugin.paramType();
    this->m_sort = flowCellPlugin.sort();
    this->m_type = flowCellPlugin.type();
    this->m_value = flowCellPlugin.value();
    this->m_bSave = flowCellPlugin.isSave();
    this->m_pluginCode = flowCellPlugin.pluginCode();
    this->m_pluginId = flowCellPlugin.pluginId();
    this->m_userTypeValue = flowCellPlugin.userTypeValue();
    this->m_associatedCode = flowCellPlugin.associatedCode();
}

FlowCellParam& FlowCellParam::operator=(const FlowCellParam &flowCellPlugin)
{
    if (this == &flowCellPlugin)
    {
        return *this;
    }

    this->m_code = flowCellPlugin.code();
    this->m_defaultValue = flowCellPlugin.defaultValue();
    this->m_description = flowCellPlugin.description();
    this->m_name = flowCellPlugin.name();
    this->m_paramType = flowCellPlugin.paramType();
    this->m_sort = flowCellPlugin.sort();
    this->m_type = flowCellPlugin.type();
    this->m_value = flowCellPlugin.value();
    this->m_bSave = flowCellPlugin.isSave();
    this->m_pluginCode = flowCellPlugin.pluginCode();
    this->m_pluginId = flowCellPlugin.pluginId();
    this->m_userTypeValue = flowCellPlugin.userTypeValue();
    this->m_associatedCode = flowCellPlugin.associatedCode();

    return *this;

}

QString FlowCellParam::code() const
{
    return m_code;
}

void FlowCellParam::setCode(const QString &code)
{
    m_code = code;
}


QString FlowCellParam::paramType() const
{
    return m_paramType;
}

void FlowCellParam::setParamType(const QString &paramType)
{
    m_paramType = paramType;
}

QString FlowCellParam::defaultValue() const
{
    return m_defaultValue;
}

void FlowCellParam::setDefaultValue(const QString &defaultValue)
{
    m_defaultValue = defaultValue;
}

QString FlowCellParam::type() const
{
    return m_type;
}

void FlowCellParam::setType(const QString &type)
{
    m_type = type;
}

QString FlowCellParam::description() const
{
    return m_description;
}

void FlowCellParam::setDescription(const QString &description)
{
    m_description = description;
}

QString FlowCellParam::sort() const
{
    return m_sort;
}

void FlowCellParam::setSort(const QString &sort)
{
    m_sort = sort;
}

QString FlowCellParam::name() const
{
    return m_name;
}

void FlowCellParam::setName(const QString &name)
{
    m_name = name;
}

QString FlowCellParam::value() const
{
    return m_value;
}

void FlowCellParam::setValue(const QString &value)
{
    m_value = value;
}


QString FlowCellParam::isSave() const
{
    return m_bSave;
}

void FlowCellParam::setIsSave(const QString& value)
{
   m_bSave = value;
}

QString FlowCellParam::pluginId() const
{
    return m_pluginId;
}

void FlowCellParam::setPluginId(const QString &pluginId)
{
    m_pluginId = pluginId;
}

QString FlowCellParam::pluginCode() const
{
    return m_pluginCode;
}

void FlowCellParam::setPluginCode(const QString &pluginCode)
{
    m_pluginCode = pluginCode;
}

QVariant FlowCellParam::userTypeValue() const
{
    return m_userTypeValue;
}

void FlowCellParam::setUserTypeValue(const QVariant &value)
{
    m_userTypeValue = value;
}

QString FlowCellParam::associatedCode() const
{
    return m_associatedCode;
}

void FlowCellParam::setAssociatedCode(const QString &code)
{
    m_associatedCode = code;
}


}

}
